package com.pureut.production.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.production.domain.GroupManagementDetail;
import com.pureut.production.domain.dto.GroupManagementDetailDto;
import com.pureut.production.domain.dto.GroupManagementDetailViewDto;
import com.pureut.production.domain.vo.GroupVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: CM
 * @date: 2023/2/7    16:31
 */
@Mapper
public interface GroupManagementDetailMapper extends BaseMapper<GroupManagementDetail> {

    /**
     *
     * @param id
     */
    List<GroupManagementDetailViewDto> selectGrop(Long id);

    /**
     * t通过id查出班组明细列表
     *
     * @param id
     * @return
     */
    List<GroupManagementDetailDto> selectDeatilList(Long id);

    /**
     * 查询工厂日历
     * @param groupVo
     * @return
     */
    GroupManagementDetailViewDto selectCalendar(GroupVo groupVo);

    /**
     * 查询工厂日历班组id列表
     * @param lineCode
     * @return
     */
    List<GroupManagementDetail> getWorkCalendar(String lineCode);
}
